part of 'lexical_item.dart';

class LexicalItemUseCase extends Equatable {
  const LexicalItemUseCase({
    required this.exampleMarkdown,
    required this.translationMarkdown,
  });

  final String exampleMarkdown;
  final String translationMarkdown;

  @override
  List<Object?> get props {
    return [
      exampleMarkdown,
      translationMarkdown,
    ];
  }

  LexicalItemUseCase copyWith({
    String Function()? exampleMarkdown,
    String Function()? translationMarkdown,
  }) {
    return LexicalItemUseCase(
      exampleMarkdown: exampleMarkdown == null ? this.exampleMarkdown : exampleMarkdown(),
      translationMarkdown:
          translationMarkdown == null ? this.translationMarkdown : translationMarkdown(),
    );
  }
}
